package com.cloud.order.feign;

import com.cloud.order.feign.fallback.ProductFeignClientFallback;
import com.cloud.product.entity.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * packageName com.cloud.order.feign
 *
 * @author yanshuanglong
 * @version JDK 8
 * @className ProductFeignClient
 * @date 2025/3/18
 * @description TODO
 */
@FeignClient(value = "service-product",fallback = ProductFeignClientFallback.class)
public interface ProductFeignClient {
    @GetMapping("/getProduct/{id}")
    Product getProductById(@PathVariable("id") Long id);
}
